define(['./../service/loadMap', './../model/project', './../model/locationPoints'],
    function() {
        var app = angular.module('App.home');
        app.controller('mapCtrl', ['$scope', '$rootScope', '$state', '$stateParams', '$timeout', 'Project', 'LocationPoints', 'loadMap', 'allProjects', 'curPrj',
            function($scope, $rootScope, $state, $stateParams, $timeout, Project, LocationPoints, loadMap, allProjects, curPrj) {

                $rootScope.curPrj = curPrj;
                //获取工程概况,工程概况是一个字符串数组
                curPrj.getProjectSummary().then(function(strs) {

                });
                //加载当前项目的地理位置
                loadMap({
                    prjs: [curPrj],
                    mapId: 'prj-map'
                });

            }
        ]);
    });
